

<?php

require_once ('../mysql/mysql_connect.php');

$result_set = mysql_query("CALL RoomNanny.getActiveSensors()");
  echo "<h2>Currently Active Sensors:</h2>";
// Get each row from result set (should only be 1)
while($row = mysql_fetch_row($result_set))
{
        echo "    
        <table id='data'>
	
         <tr>
	     <td>
	     ID#
	     </td>
	  <td>
	  $row[0]
	  </td>
	</tr>


	<tr>
	  <td>
	     Name: 
	  </td>
	  <td>
	  $row[1]
	  </td>
	</tr>
	</table>"; //end echo

}
?>

